package utils;

import java.math.BigInteger;
import java.security.MessageDigest;

/**
 * Created by IntelliJ IDEA.
 * User: Admin
 * Date: Feb 5, 2010
 * Time: 10:08:09 PM
 * To change this template use File | Settings | File Templates.
 */
public class CodeGenerator {
    public static void main(String[] args) throws Exception {
        String toEnc = "aidoka";
        MessageDigest m = MessageDigest.getInstance("MD5");
        m.update(toEnc.getBytes(), 0, toEnc.length());
        String md5 = new BigInteger(1, m.digest()).toString(16);
        System.out.println(md5);
    }
}
